finding point of intersection